package com.efast.dmom.mgmt.service.les;

import java.util.List;

import com.efast.dmom.mgmt.entity.les.TwBasLotSequence;
import com.efast.dmom.mgmt.utils.Assist;


public interface TwBasLotSequenceService {
	/**
	 * 获得TwBasLotSequence数据的总行数,可以通过辅助工具Assist进行条件查询,如果没有条件则传入null
	 * 
	 * @param assist
	 * @return
	 */
	long getTwBasLotSequenceRowCount(Assist assist);

	/**
	 * 获得TwBasLotSequence数据集合,可以通过辅助工具Assist进行条件查询,如果没有条件则传入null
	 * 
	 * @param assist
	 * @return
	 */
	List<TwBasLotSequence> selectTwBasLotSequence(Assist assist);

	/**
	 * 获得一个TwBasLotSequence对象,以参数TwBasLotSequence对象中不为空的属性作为条件进行查询
	 * 
	 * @param obj
	 * @return
	 */
	TwBasLotSequence selectTwBasLotSequenceByObj(TwBasLotSequence obj);

	/**
	 * 通过TwBasLotSequence的id获得TwBasLotSequence对象
	 * 
	 * @param id
	 * @return
	 */
	TwBasLotSequence selectTwBasLotSequenceById(Integer id);

	/**
	 * 插入TwBasLotSequence到数据库,包括null值
	 * 
	 * @param value
	 * @return
	 */
	int insertTwBasLotSequence(TwBasLotSequence value);

	/**
	 * 插入TwBasLotSequence中属性值不为null的数据到数据库
	 * 
	 * @param value
	 * @return
	 */
	int insertNonEmptyTwBasLotSequence(TwBasLotSequence value);

	/**
	 * 批量插入TwBasLotSequence到数据库
	 * 
	 * @param value
	 * @return
	 */
	int insertTwBasLotSequenceByBatch(List<TwBasLotSequence> value);

	/**
	 * 通过TwBasLotSequence的id删除TwBasLotSequence
	 * 
	 * @param id
	 * @return
	 */
	int deleteTwBasLotSequenceById(Integer id);

	/**
	 * 通过辅助工具Assist的条件删除TwBasLotSequence
	 * 
	 * @param assist
	 * @return
	 */
	int deleteTwBasLotSequence(Assist assist);

	/**
	 * 通过TwBasLotSequence的id更新TwBasLotSequence中的数据,包括null值
	 * 
	 * @param enti
	 * @return
	 */
	int updateTwBasLotSequenceById(TwBasLotSequence enti);

	/**
	 * 通过辅助工具Assist的条件更新TwBasLotSequence中的数据,包括null值
	 * 
	 * @param value
	 * @param assist
	 * @return
	 */
	int updateTwBasLotSequence(TwBasLotSequence value, Assist assist);

	/**
	 * 通过TwBasLotSequence的id更新TwBasLotSequence中属性不为null的数据
	 * 
	 * @param enti
	 * @return
	 */
	int updateNonEmptyTwBasLotSequenceById(TwBasLotSequence enti);

	/**
	 * 通过辅助工具Assist的条件更新TwBasLotSequence中属性不为null的数据
	 * 
	 * @param value
	 * @param assist
	 * @return
	 */
	int updateNonEmptyTwBasLotSequence(TwBasLotSequence value, Assist assist);
}